Cache Line Size
This is a crate that gives access to the cache line size of a given architecture. It also has a generic type that can be used to align its parameter to the cache line size.
For example, to have a struct with three u8
with each on its own
cache line, you could write the following code:
use ;
use size_of;